package org.lvgo.proxy.image;

/**
 * @author lvgo
 * @version 1.0
 * @Description: 实际图片
 * @date 18-8-23 上午11:04
 */
public class RealImage implements Image {

    private String name;


    public RealImage(String name) {
        this.name = name;
        loadFromDisk(name);
    }

    /**
     * 展示图片
     */
    @Override
    public void display() {
        System.out.println("展示图片内容 " + name);
    }

    /**
     * 从磁盘加载图片
     *
     * @param name
     */
    private void loadFromDisk(String name) {
        System.out.println("正在加载... " + name);
    }
}
